package com.example.service3;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @className: UserService
 * @description:
 * @author: yang pan
 */
@FeignClient("service2")
public interface UserService {


    @RequestMapping(path = "/getUser",method = RequestMethod.GET)
    String getUser();

    @RequestMapping(path = "/getUserInfo",method = RequestMethod.GET)
    String getUserInfo(@RequestParam("userId") String userId);
}
